package cn.qdhlm.collectservice.model.rocketmq;

import lombok.Data;

import java.util.Date;

/**
 * @Name:Command
 * @description:
 * @author: xinY
 **/
@Data
public class Command {
    private String id;
    private String collectorNo;
    private String terminalNo;
    private String funcCode;
    private String data;
    private String commandType;
    private Integer commandCollectorId;
    private Integer commandTerminalId;
    private Integer nextSn;
    private Integer codeCustomNb;
    private String macAddr;

    /**
     * 状态：
     * READY，命令已准备就绪
     * SENT，已发送
     * SUCCESS，成功
     * FAIL，失败
     * 25-SECONDS-TIMEOUT，超时未回执
     */
    private String status;
    /**
     * 命令创建时间
     */
    private Date createTime;
    /**
     * 命令发送时间
     */
    private Date sendTime;
    /**
     * 状态更新时间
     */
    private Date updateTime;
}
